import os
from langchain.llms import OpenAI
# from langchain_community.llms import OpenAI

#设置openai api key
os.environ["OPENAI_API_KEY"] = "sess-qCX1fF30AgyeRtGPXivJSiOjDBoTno5CksuRwhst"
#设置llm模型是openai
llm = OpenAI(temperature=0.9)
text = "What would be a good company name for a company that makes colorful socks?"
#开始执行
print(llm(text))

